<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/Gpointnum.css" />
		<link rel="stylesheet" type="text/css" href="css/rubber.css"/>
		<script src="js/utils.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<title></title>
	</head>

	<body>
		<div class="Gtpointnum_web">
			<!--音乐-->
			<div class="zanting audioBtn dh">
				<img src="img/yinyue1.png" class="img1"/>
				<img src="img/yinyue2.png" class="img2"/>
			</div>
			<div class="sanxiongdi ">
				<div class="prompting">
					<p>请输入兑换码</p>
				</div>
				<form action="" method="post">

					<input type="text" value="" />
					<div id="yincang" class="num_bottoms">
						<div class="sure_bottomtwo">确定</div>
					</div>
				</form>
			</div>
			<div class="Ranking_List-foot">
				<a href="index.html">
					<div>
						<img src="img/xiaofangzi.png" />
					</div>
				</a>
			</div>

		</div>
		<div id="yingcangweb">
			<div id="ale" class="scaleguodu">
				<span id="close">x</span>
				<p class="mingduan">兑换成功!</p>

			</div>
		</div>
		<div class="yingcangweb2">
			<div id="ale2" class="scaleguodu">
				<span id="close" class="asd">x</span>
				<p class="mingduan">兑换失败!</p>
				<div id="returns">重新输入</div>
			</div>
		</div>
	</body>
	<audio class="bgMusic" src="music/mianhuatang.mp3" autoplay="autoplay" loop="loop"></audio>
	<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		var arr = [111,222,333,444,555,666,777,888];
		$("#close").on("click",function(){
			$("#yingcangweb").css("display","none");
		})
		$("#returns,.asd").on("click",function(){
			$(".yingcangweb2").css("display","none");
		})
		$("#yincang").on("touchstart",function(){
			var inp = $("input");
			console.log(inp.val())
			var a;
			for(var i =0;i<arr.length;i++){
				if(inp.val()==arr[i]){
					a=i;
				}
			}
			if(inp.val()==arr[a]){
					$("#yingcangweb").css("display","block");
				}else{
					$(".yingcangweb2").css("display","block");
				}
		})
	</script>

</html>